package com.right.util;

/**********************************************
 * @author pillar
 * @date 2018/6/13
 **********************************************/
public final class Crc16 {

    /**
     * CRC异或运算
     * @param content
     * @return
     */
    public static int createCrc(byte[] content) {
        int result = 0;
        for (int i = 0; i < content.length; i++) {
            result ^= content[i];
        }
        return result;
    }

}
